package cn.niit.staticproxy;

import cn.niit.proxy.IHourseRental;
import cn.niit.proxy.OwnerRental;

public class OwnerRentalProxy {

    private IHourseRental iHourseRental;

    public OwnerRentalProxy(IHourseRental iHourseRental)
    {
        this.iHourseRental = iHourseRental;
    }



    public OwnerRentalProxy() {

    }
    public void rent(){
        System.out.println("OwnerRentalproxy 开始代理房子");
        if (seeHourse()){
            System.out.println("房子不错，可以出租");
        }else {
            System.out.println("房子太小。。。。。");
        }
        System.out.println("OwnerRentalproxy 代理完成。。。");
    }
    public boolean seeHourse(){
        return false;
    }

}
